﻿using System;
using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.Instances;

namespace CID.Domain.Persistence.Conventions
{
    public class ClassTableNameConvention : IClassConvention
    {
        public void Apply(IClassInstance instance)
        {
            instance.Table(String.Format("{0}s", instance.EntityType.Name));
        }
    }

}
